package com.chap16.immutability;

/**
 * <p>
 * <code>SmsInfo</code>
 * </p>
 *
 * @author junbao3
 * TODO
 * @date 2023-04-25 15:26
 * Copyright (C) 2021 IFlyTek. All rights reserved.
 */
public class SmsInfo {
    //短信服务商信息
    //服务商地址
    private String url;
    //短信字节数
    private Integer maxSizeInBytes;

    public SmsInfo(String url, Integer maxSizeInBytes) {
        this.url = url;
        this.maxSizeInBytes = maxSizeInBytes;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getMaxSizeInBytes() {
        return maxSizeInBytes;
    }

    public void setMaxSizeInBytes(Integer maxSizeInBytes) {
        this.maxSizeInBytes = maxSizeInBytes;
    }

    @Override
    public String toString() {
        return "SmsInfo{" +
                "url='" + url + '\'' +
                ", maxSizeInBytes=" + maxSizeInBytes +
                '}';
    }
}
